package com.dingreading.cloud.subject.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SubjectLessonVideoListDto implements Serializable {
    @JsonIgnore
    private Long id;

    private String uid;

    private String subjectMainName;

    private String lessonName;

    @RelationOneToMany(
            selfField = "uid",
            targetTable = "subject_lesson_video",
            targetField = "lessonUid",
            extraCondition = "(enabled = 1)"
    )
    private List<SubjectLessonVideoDto> videoList;

}
